package algorithmTopics.designPatterns.adapterPattern;

/**
 * 演示设配器模式
 *  结构性设计模式
 * 将一个类的一个接口转化为另一个接口 ， 使原本不兼容的类可以协同工作
 *
 * @author 86155
 * @date 2025/07/22
 */
public class Demo {
    public static void main(String[] args) {
        AudioPlayer audioPlayer = new AudioPlayer();
        audioPlayer.play("mp3"," aaaa.mp3");
        audioPlayer.play("mp4"," alone.mp4");
        audioPlayer.play("mp5"," alone.mp4");
        audioPlayer.play("lvc"," alone.mp4");
    }
}
